package edu.jamestang.yeb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.jamestang.yeb.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author JamesTang
 * @date 2021/12/13 23:22
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * get menu list
     * @param id user id
     * @return menu list
     */
    List<Menu> getMenusByAdminId(Integer id);

    /**
     * get menu list
     * @return menu list
     */
    List<Menu> getMenusByRole();

    /**
     * Get all menu
     * @return menu list
     */
    List<Menu> getAllMenus();
}
